<?php
	namespace Home\Controller;
	use Think\Controller;
	class ManagerController extends Controller{
		protected $userId;
		protected function isAuthorize(){
               $loginStatus=session('loginStatus');
               if(!$loginStatus){
                  $this->redirect('User/userLogin','',2,'not authirize');
                  exit();
                }
               $this->userId=session('id');
               $userName=session('email');
               $this->assign('userName',$userName);
               $this->assign('userId',$this->userId);			
			
		}
		
		public function index(){
			$this->isAuthorize();
			$this->display('Index');
		}
		
		public function quitLogin(){
			session(null);
			$this->redirect('index/userLogin','',2,'quitLogin ok');
            exit();
		}
		
		
	   
	   
	   
	}